package com.central.apps.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;
import java.util.Map;

/**
 * @author 
 * @version 创建时间：2018年10月24日
 * DAO
 */
@Mapper
public interface inspectionDao {

	@Options(useGeneratedKeys = true, keyProperty = "id")
	@Insert("insert into bl_inspection(inspectorinspectioncycle,repairmaninspectioncycle,insstdnum,inspectionnum,inspectionname,inspectionroute,deptcode,inspectiontype,inspectiontool,keypart,inspectionstaffgroup,operatoninspectioncycle,operationstarttime,createuser,createuserdesc,createtime) "
			+ "values (#{inspectorinspectioncycle}, #{repairmaninspectioncycle}, #{insstdnum}, #{inspectionnum}, #{inspectionname}, #{inspectionroute}, #{deptcode}, #{inspectiontype}, #{inspectiontool}, #{keypart}, #{inspectionstaffgroup}, #{operatoninspectioncycle}, #{operationstarttime}, #{createuser}, #{createuserdesc}, #{createtime})")
	int insert(Map<String, Object> map);

}
